package com.oocl.tm;

import java.io.OutputStream;
import java.io.PrintWriter;

public class SendThread implements Runnable{

	PrintWriter writer = null;
	
	
	
	public SendThread(OutputStream os) throws InterruptedException {
		writer = new PrintWriter(os,true);
		Thread.sleep(1000);
		System.out.println("enter........................");
	}



	@Override
	public void run() {
		while(true){
		try {
			Thread.sleep(4000);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
			writer.println("Hello-------------");
		}
		
	}
	
	
	

}
